/***************************************************************
 *
 * (c) 2008 Markus Dittrich 
 *
 * This program is free software; you can redistribute it 
 * and/or modify it under the terms of the GNU General Public 
 * License Version 3 as published by the Free Software Foundation. 
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License Version 3 for more details.
 *
 * You should have received a copy of the GNU General Public 
 * License along with this program; if not, write to the Free 
 * Software Foundation, Inc., 59 Temple Place - Suite 330, 
 * Boston, MA 02111-1307, USA.
 *
 ****************************************************************/

/* stl includes */

/* local includes */
#include "settings.h"


/****************************************************************
 *
 * public member functions
 *
 ***************************************************************/

//---------------------------------------------------------------
// constructor
//---------------------------------------------------------------
Settings::Settings()
  :
    canvasDataSelectionSensitivity_(1),
    continuousDataInfo_(false)
{
  // nothing to do
}


//---------------------------------------------------------------
// get canvas selection sensitivity level 
//---------------------------------------------------------------
int Settings::get_canvas_data_selection_sensitivity() const
{
  return canvasDataSelectionSensitivity_;
}


//---------------------------------------------------------------
// get state of continuous data info
//---------------------------------------------------------------
bool Settings::get_continuous_data_info() const
{
  return continuousDataInfo_;
}


/****************************************************************
 *
 * public slots
 *
 ***************************************************************/

//---------------------------------------------------------------
// set canvas selection sensitivity level 
//---------------------------------------------------------------
void Settings::set_canvas_data_selection_sensitivity(int level)
{
  canvasDataSelectionSensitivity_ = level;
}


//---------------------------------------------------------------
// set state of continuous data info
//---------------------------------------------------------------
void Settings::set_continuous_data_info(bool newState) 
{
  continuousDataInfo_ = newState;
}


